﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GrouponDesktop.AbmRol
{
    public partial class BajaRol : Form
    {
        private string rolBaja;
        
        public BajaRol(string rol)
        {
            this.rolBaja = rol;
            InitializeComponent();
        }

        private void b_SI_Click(object sender, EventArgs e)
        {
            BDConnection.execute("EXEC CodingSpree.bajaLogica '" + this.rolBaja + "'");
            MessageBox.Show("Rol Dado De Baja");
            Hide();
        }

        private void b_NO_Click(object sender, EventArgs e)
        {
            Hide();
        }

       
    }
}
